Fix race between xspy_read_watch and xspy_watch, by placing the watch in the
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 15 Nov 2005 16:22:04 +0000 (17:22 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 15 Nov 2005 16:22:04 +0000 (17:22 +0100)
commitf1d4a077eaec3badf15998ba20b9315eeebfe8b5
tree9c83b8d27d2edeeee6588b16254a3aaad5084bc5
parentfd8a620f6bf6b65939cf0b8f940d41552c691474
Fix race between xspy_read_watch and xspy_watch, by placing the watch in the
xshandle's list of watches *before* registering the watch with Xend.

Closes bug #392.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/lowlevel/xs/xs.c